import check from '@feidao/web/atom/nodejs/captcha/check';

interface Message {
	cookie: { uk: string; };
	query: { [key: string]: any };
}

export default async function atom(msg: Message, action_id: string, session_id: string) {
	const { captcha } = msg.query;
	const res = await check(msg.cookie, captcha);
	console.log('------------------', res);
	return { data: res };
}
